<!DOCTYPE html>
<!-- saved from url=(0068)http://weixin.zto.cn/Order/Index?OpenId=ocMyOjitqZxthXoyp6_f0oYIfawU -->
<html style="font-size: 22.5px;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache,no-store,must-revalidate">
    <meta http-equiv="Expires" content="0">
    
    <meta name="format-detection" content="telephone=no">
    <meta name="robots" content="none">
    <title>纳川财务</title>
    <script>
        (function () {
            if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) {
                var msViewportStyle = document.createElement("style");
                msViewportStyle.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}"));
                document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
            }
        })();
    </script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <link href="/css/base.css" type="text/css" rel="stylesheet">
    <link href="/css/all.css" type="text/css" rel="stylesheet">
    <link href="/css/font.css" type="text/css" rel="stylesheet">
    <link href="/css/style.css" type="text/css" rel="stylesheet">
    <script src="/js/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="/js/zepto.min.js" type="text/javascript"></script>
    <script src="/js/swiper.min.js" type="text/javascript"></script>

</head>
<body>
    
    

    <div class="order_menu">
        <a href="javascript:void(0)" class="menu_a cur">代缴费</a>
        <a href="javascript:void(0)" class="menu_a">已缴费</a>
        
    </div>             
    <div class="order_list show" id="no">
    {% for tmprescom in rescomadmin %}
    	{%if tmprescom.feests == "1"%}
        <a href="http://weixin.zto.cn/Order/OrderShow?OpenId=ocMyOjitqZxthXoyp6_f0oYIfawU&amp;OrderCode=ZT1606296304260699" class="order_item">
        		<span class="order_num">公司名称：{{tmprescom.company}} </span>
        		<span class="order_time">费用名称： {{tmprescom.feename}}</span>
        		<span class="order_state">应缴费日期：{{tmprescom.feedate_end}}</span>
        		<span class="order_state">缴费金额：{{tmprescom.feecount}}元</span>
        </a>
    	{%endif%}
    {% endfor %}
        <div class="add_room" id="moreno" style="display: none">
            <span class="add_data" onclick=" noorder() " style="width: 1336px;">加载更多&gt;&gt;</span>
            <span class="totop"></span>
        </div>
        <input id="Hiddenno" type="hidden" value="1">
        <input id="Hiddennoall" type="hidden" value="1">
    </div>
    <div class="order_list" id="yes">
    {% for tmprescom in rescomadmin %}
    	{% if tmprescom.feests == '2' %}
        <a href="http://weixin.zto.cn/Order/OrderShow?OpenId=ocMyOjitqZxthXoyp6_f0oYIfawU&amp;OrderCode=ZT1606296304260699" class="order_item">
        		<span class="order_num">公司名称：{{tmprescom.company}} </span>
        		<span class="order_time">费用名称： {{tmprescom.feename}}</span>
        		<span class="order_state">缴费日期：{{tmprescom.feedate}}</span>
        		<span class="order_state">缴费金额：{{tmprescom.feecount}}元</span>
        </a>
    	{% endif %}
    {% endfor %}
        <div class="add_room" id="moreyes" style="display: none">
            <span class="add_data" onclick=" yesorder() " style="width: 1336px;">加载更多&gt;&gt;</span>
            <span class="totop"></span>
        </div>
        <input id="Hiddenyes" type="hidden" value="1">
        <input id="Hiddenyesall" type="hidden" value="0">
    </div>
    <div class="order_list" id="cancel">
        <div class="add_room" id="morecancel" style="display: none">
            <span class="add_data" onclick=" cancelorder() " style="width: 1336px;">加载更多&gt;&gt;</span>
            <span class="totop"></span>
        </div>
        <input id="Hiddencancel" type="hidden" value="1">
        <input id="Hiddencancelall" type="hidden" value="0">
    </div>

<script src="/js/jweixin-1.0.0.js" type="text/javascript"></script>
<script type="text/javascript">

    //配置config
    var imgUrl = "http://weixin.zto.cn/Content/image/logo2.png";
    wx.config({
        debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
        appId: 'wxdb943f961ca9da9d', // 必填，公众号的唯一标识
        timestamp: "1476020442", // 必填，生成签名的时间戳
        nonceStr: "912fc18b-90dd-4b21-b224-ccad9328c78f", // 必填，生成签名的随机串
        signature: "d46f607f053d45ec5d1788ccffd996aa2bbadc85",// 必填，签名，见附录1
        jsApiList: [
            'checkJsApi',
            'onMenuShareTimeline',
            'onMenuShareAppMessage',
            'onMenuShareQQ',
            'onMenuShareWeibo',
            'scanQRCode'
        ] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
    });
</script>

<script type="text/javascript">
    wx.ready(function () {
        var shareData = {
            title: '中通快递',
            desc: '中通快递官方微信为您提供在线查件、寄件、网点查询、价格时效查询等服务！',
            link: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdb943f961ca9da9d&redirect_uri=http%3a%2f%2fweixin.zto.cn%2fOAuth2&response_type=code&scope=snsapi_base&state=OrderAdd&connect_redirect=1#wechat_redirect",
            imgUrl: imgUrl,
        };
        wx.onMenuShareAppMessage(shareData); //分享给朋友
        wx.onMenuShareTimeline(shareData); //分享到朋友圈
        wx.onMenuShareQQ(shareData); //分享到QQ
        wx.onMenuShareWeibo(shareData); //分享到微博
        wx.onMenuShareQZone(shareData); //分享到QZone
    });
</script>
<script src="/js/fun.js" type="text/javascript"></script>
<script type="text/javascript">
    (function ($) {
        $(".order_menu .menu_a").tap(function () {
            var n = $(this).index();
            $(this).addClass("cur").siblings().removeClass("cur");
            $(".order_list:eq(" + n + ")").addClass("show").siblings(".order_list").removeClass("show");
        });
        $(".add_data").css({ width: $(window).width() - 30 + "px" });

        //获取已收件首次加载订单条数
        var num1 = $("#yes a").size();
        if (num1 >= 5) {
            $("#moreyes").css("display", "block");
        }
        //获取未收件首次加载订单条数
        var num2 = $("#no a").size();
        if (num2 >= 5) {
            $("#moreno").css("display", "block");
        }
        //获取已取消首次加载订单条数
        var num3 = $("#cancel a").size();
        if (num3 >= 5) {
            $("#morecancel").css("display", "block");
        }
        $(".totop").live('tap', function() {
            $('html,body').scrollTop(0);
        });

    })(Zepto);
    //判断高度
    function hei() {
        if ($(".order_list.show").height() > $(window).height() - 200) {
            $(".totop").show();
            $(".add_data").css({ width: $(window).width() - 70 + "px"});
        } else {
            $(".totop").hide();
            $(".add_data").css({ width: $(window).width() - 30 + "px" });
        }
    }
    //已收件
    function yesorder() {
        var PageIndex = Number($("#Hiddenyes").val()) + 1;
        $("#Hiddenyes").val(PageIndex);
        //获得订单总页数
        var allcount = $("#Hiddenyesall").val();
        if (PageIndex <= allcount) {
            $.post("/Order/ReceivedPart", { "OpenId": 'ocMyOjitqZxthXoyp6_f0oYIfawU', "PageIndex": PageIndex }, function (result) {
                if (result.Count == 0) {
                    hint("系统异常，请重新提交！");
                    return false;
                }
                if (result.Count > 0 || result.Count != null) {
                    for (var i = 0; i <= result.Count; i++) {
                        document.getElementById("yes").innerHTML += '<a href="/Order/OrderShow?OpenId=ocMyOjitqZxthXoyp6_f0oYIfawU&OrderCode=' + result.OrderList[i].orderCode + '" class="order_item"><span class="order_num">订单号：' + result.OrderList[i].orderCode + '</span><span class="order_time">下单时间：' + ChangeDateFormat(result.OrderList[i].CreateDate) + '</span><span class="order_state">订单状态：已收件</span></a>';
                    }
                } else {
                    hint(result.Message);
                }
            }, "json");
        } else {
            $("#moreyes").find(".add_data").text("加载完所有了！");
            $("#moreyes").find(".add_data").addClass("not");
        }
        hei();
    }

    //未收件
    function noorder() {
        var PageIndex = Number($("#Hiddenno").val()) + 1;
        $("#Hiddenno").val(PageIndex);
        //获得订单总页数
        var allcount = $("#Hiddennoall").val();
        if (PageIndex <= allcount) {
            $.post("/Order/NotReceivingPart", { "OpenId": 'ocMyOjitqZxthXoyp6_f0oYIfawU', "PageIndex": PageIndex }, function (result) {
                if (result.Count == 0) {
                    hint("系统异常，请重新提交！");
                    return false;
                }
                if (result.Count > 0 || result.Count != null) {
                    for (var i = 0; i <= result.Count; i++) {
                        document.getElementById("no").innerHTML += '<a href="/Order/OrderShow?OpenId=ocMyOjitqZxthXoyp6_f0oYIfawU&OrderCode=' + result.OrderList[i].orderCode + '" class="order_item"><span class="order_num">订单号：' + result.OrderList[i].orderCode + '</span><span class="order_time">下单时间：' + ChangeDateFormat(result.OrderList[i].CreateDate) + '</span><span class="order_state">订单状态：未收件</span></a>';
                    }
                } else {
                    hint(result.Message);
                }
            }, "json");
        } else {
            $("#moreno").find(".add_data").text("加载完所有了！");
            $("#moreno").find(".add_data").addClass("not");
        }
        hei();
    }

    //已取消
    function cancelorder() {
        var PageIndex = Number($("#Hiddencancel").val()) + 1;
        $("#Hiddencancel").val(PageIndex);
        //获得订单总页数
        var allcount = $("#Hiddencancelall").val();
        if (PageIndex <= allcount) {
            $.post("/Order/CanceledPart", { "OpenId": 'ocMyOjitqZxthXoyp6_f0oYIfawU', "PageIndex": PageIndex }, function (result) {
                if (result.Count == 0) {
                    hint("系统异常，请重新提交！");
                    return false;
                }
                if (result.Count > 0 || result.Count != null) {
                    for (var i = 0; i <= result.Count; i++) {
                        document.getElementById("cancel").innerHTML += '<a href="/Order/OrderShow?OpenId=ocMyOjitqZxthXoyp6_f0oYIfawU&OrderCode=' + result.OrderList[i].orderCode + '" class="order_item"><span class="order_num">订单号：' + result.OrderList[i].orderCode + '</span><span class="order_time">下单时间：' + ChangeDateFormat(result.OrderList[i].CreateDate) + '</span><span class="order_state">订单状态：已取消</span></a>';
                    }
                } else {
                    hint(result.Message);
                }
            }, "json");
        } else {
            $("#morecancel").find(".add_data").text("加载完所有了！");
            $("#morecancel").find(".add_data").addClass("not");
        }
        hei();
    }

    //Json时间转换
    function ChangeDateFormat(dateTime) {
        if (dateTime == "" || dateTime == null) {
            return "";
        }
        var date = new Date(parseInt(dateTime.replace("/Date(", "").replace(")/", ""), 10));
        var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
        var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
        var hour = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
        var min = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
        var sec = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
        return date.getFullYear() + "-" + month + "-" + currentDate + " " + hour + ":" + min + ":" + sec;
    }

</script>

</body></html>